{
	"ProcessTemplates": [
		{
			"Name": "Shopify to Dynamics 365 - Customers",
			"Modified": "2024-07-12T04:57:40.6919527",
			"Modifier": "charlotta.bergstrom@frends.com",
			"Tags": [],
			"TemplateProcessTags": [],
			"Description": "This template retrieves customers from Shopify and either inserts or updates them in Dynamics 365 as contacts.",
			"Version": 1,
			"UniqueIdentifier": "8bd92747-a87c-4ca4-9996-d49a8e0abf48",
			"ProcessVariablesJson": "{\"ShopifyUrl\":{\"Value\":\"\\\"https://example.myshopify.com\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"The base URL for accessing the Shopify API.\"},\"ShopifyAccessToken\":{\"Value\":\"\\\"ExampleAccessToken\\\"\",\"IsSecret\":true,\"Mode\":\"text\",\"Description\":\"The access token for the Shopify API.\"},\"DynamicsClientId\":{\"Value\":\"\\\"ClientId\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"The ID for Dynamics 365 client.\"},\"DynamicsTenantId\":{\"Value\":\"\\\"TenantId\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"The ID for Dynamics 365 tenant.\"},\"DynamicsClientSecret\":{\"Value\":\"\\\"ClientSecret\\\"\",\"IsSecret\":true,\"Mode\":\"text\",\"Description\":\"The secret key for Dynamics 365 client.\"},\"DynamicsUrl\":{\"Value\":\"\\\"https://exampleorganization.crm4.dynamics.com\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"The Dynamics 365 instance URL.\"}}",
			"ProcessInfo": {
				"Process": {
					"Name": "Shopify to Dynamics 365 - Customers",
					"Modified": "2024-07-12T04:57:40.6919527",
					"Modifier": "charlotta.bergstrom@frends.com",
					"TagString": null,
					"Tags": [],
					"Description": "This template retrieves customers from Shopify and either inserts or updates them in Dynamics 365 as contacts.",
					"Version": 1,
					"UniqueIdentifier": "e04dd954-456e-44ed-98e9-99bbff588a8a",
					"GraphJson": null,
					"Bpmn": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<bpmn2:definitions xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:bpmn2=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:dc=\"http://www.omg.org/spec/DD/20100524/DC\" xmlns:di=\"http://www.omg.org/spec/DD/20100524/DI\" id=\"sample-diagram\" targetNamespace=\"http://bpmn.io/schema/bpmn\" xsi:schemaLocation=\"http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd\"><bpmn2:process id=\"Process_1\" isExecutable=\"false\"><bpmn2:startEvent id=\"StartEvent_1\" name=\"Manual\"><bpmn2:outgoing>Flow_1139wsd</bpmn2:outgoing></bpmn2:startEvent><bpmn2:endEvent id=\"Event_0haq8vy\"><bpmn2:incoming>Flow_0hlf947</bpmn2:incoming></bpmn2:endEvent><bpmn2:subProcess id=\"Activity_1cbbbyn\" name=\"For each customer\"><bpmn2:incoming>Flow_07godbe</bpmn2:incoming><bpmn2:outgoing>Flow_0hlf947</bpmn2:outgoing><bpmn2:multiInstanceLoopCharacteristics isSequential=\"true\" /><bpmn2:startEvent id=\"Event_01lslhn\"><bpmn2:outgoing>Flow_148u9tu</bpmn2:outgoing></bpmn2:startEvent><bpmn2:endEvent id=\"Event_18710cb\" name=\"Increase inserted count\"><bpmn2:incoming>Flow_0u6g4mt</bpmn2:incoming></bpmn2:endEvent><bpmn2:exclusiveGateway id=\"Gateway_08frzr1\" name=\"Insert contact successful?\" default=\"Flow_0yop5xq\"><bpmn2:incoming>Flow_0txpa1f</bpmn2:incoming><bpmn2:outgoing>Flow_0u6g4mt</bpmn2:outgoing><bpmn2:outgoing>Flow_0yop5xq</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:endEvent id=\"Event_06117ey\" name=\"Return and add error message to errors variable\"><bpmn2:incoming>Flow_0yop5xq</bpmn2:incoming></bpmn2:endEvent><bpmn2:sequenceFlow id=\"Flow_148u9tu\" sourceRef=\"Event_01lslhn\" targetRef=\"Activity_156pj4n\" /><bpmn2:sequenceFlow id=\"Flow_0u6g4mt\" name=\"yes\" sourceRef=\"Gateway_08frzr1\" targetRef=\"Event_18710cb\" /><bpmn2:task id=\"Activity_1vz5788\" name=\"Insert contact in Dynamics\"><bpmn2:incoming>Flow_0avt6fb</bpmn2:incoming><bpmn2:outgoing>Flow_0txpa1f</bpmn2:outgoing></bpmn2:task><bpmn2:sequenceFlow id=\"Flow_0txpa1f\" sourceRef=\"Activity_1vz5788\" targetRef=\"Gateway_08frzr1\" /><bpmn2:task id=\"Activity_156pj4n\" name=\"Find contact in Dynamics\"><bpmn2:incoming>Flow_148u9tu</bpmn2:incoming><bpmn2:outgoing>Flow_1vgvuo1</bpmn2:outgoing></bpmn2:task><bpmn2:sequenceFlow id=\"Flow_1vgvuo1\" sourceRef=\"Activity_156pj4n\" targetRef=\"Gateway_1i3gwt2\" /><bpmn2:exclusiveGateway id=\"Gateway_08738ux\" name=\"Contact exists?\" default=\"Flow_0avt6fb\"><bpmn2:incoming>Flow_194nqxj</bpmn2:incoming><bpmn2:outgoing>Flow_1byfsvr</bpmn2:outgoing><bpmn2:outgoing>Flow_0avt6fb</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:sequenceFlow id=\"Flow_1byfsvr\" name=\"yes\" sourceRef=\"Gateway_08738ux\" targetRef=\"Activity_009c1q2\" /><bpmn2:task id=\"Activity_009c1q2\" name=\"Update contact in Dynamics\"><bpmn2:incoming>Flow_1byfsvr</bpmn2:incoming><bpmn2:outgoing>Flow_19pgly8</bpmn2:outgoing></bpmn2:task><bpmn2:sequenceFlow id=\"Flow_0avt6fb\" name=\"no\" sourceRef=\"Gateway_08738ux\" targetRef=\"Activity_1vz5788\" /><bpmn2:sequenceFlow id=\"Flow_0yop5xq\" name=\"no\" sourceRef=\"Gateway_08frzr1\" targetRef=\"Event_06117ey\" /><bpmn2:exclusiveGateway id=\"Gateway_00xb4jp\" name=\"Update contact successful?\" default=\"Flow_0mztgqh\"><bpmn2:incoming>Flow_19pgly8</bpmn2:incoming><bpmn2:outgoing>Flow_17a4ytj</bpmn2:outgoing><bpmn2:outgoing>Flow_0mztgqh</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:sequenceFlow id=\"Flow_19pgly8\" sourceRef=\"Activity_009c1q2\" targetRef=\"Gateway_00xb4jp\" /><bpmn2:sequenceFlow id=\"Flow_17a4ytj\" name=\"yes\" sourceRef=\"Gateway_00xb4jp\" targetRef=\"Event_1e8y0zn\" /><bpmn2:endEvent id=\"Event_1hjhcuo\" name=\"Return and add error message to errors variable\"><bpmn2:incoming>Flow_0mztgqh</bpmn2:incoming></bpmn2:endEvent><bpmn2:sequenceFlow id=\"Flow_0mztgqh\" name=\"no\" sourceRef=\"Gateway_00xb4jp\" targetRef=\"Event_1hjhcuo\" /><bpmn2:endEvent id=\"Event_1e8y0zn\" name=\"Increase updated count\"><bpmn2:incoming>Flow_17a4ytj</bpmn2:incoming></bpmn2:endEvent><bpmn2:exclusiveGateway id=\"Gateway_1i3gwt2\" name=\"Find contact successful?\" default=\"Flow_1x6ymz6\"><bpmn2:incoming>Flow_1vgvuo1</bpmn2:incoming><bpmn2:outgoing>Flow_194nqxj</bpmn2:outgoing><bpmn2:outgoing>Flow_1x6ymz6</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:sequenceFlow id=\"Flow_194nqxj\" name=\"yes\" sourceRef=\"Gateway_1i3gwt2\" targetRef=\"Gateway_08738ux\" /><bpmn2:endEvent id=\"Event_168rx54\" name=\"Return and add error message to errors variable\"><bpmn2:incoming>Flow_1x6ymz6</bpmn2:incoming></bpmn2:endEvent><bpmn2:sequenceFlow id=\"Flow_1x6ymz6\" name=\"no\" sourceRef=\"Gateway_1i3gwt2\" targetRef=\"Event_168rx54\" /><bpmn2:textAnnotation id=\"TextAnnotation_0a6gpmn\"><bpmn2:text>Search for an existing Dynamics contact with a matching email.</bpmn2:text></bpmn2:textAnnotation><bpmn2:association id=\"Association_1lelun7\" sourceRef=\"Activity_156pj4n\" targetRef=\"TextAnnotation_0a6gpmn\" /></bpmn2:subProcess><bpmn2:dataStoreReference id=\"DataStoreReference_09o0a8l\" name=\"Shopify\" /><bpmn2:exclusiveGateway id=\"Gateway_1skwah6\" name=\"Get customers successful?\" default=\"Flow_074b18l\"><bpmn2:incoming>Flow_1yudabs</bpmn2:incoming><bpmn2:outgoing>Flow_1va294l</bpmn2:outgoing><bpmn2:outgoing>Flow_074b18l</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:intermediateThrowEvent id=\"Event_07htuww\" name=\"Throw an error if Shopify request fails\"><bpmn2:incoming>Flow_074b18l</bpmn2:incoming><bpmn2:signalEventDefinition id=\"SignalEventDefinition_0j81j22\" /></bpmn2:intermediateThrowEvent><bpmn2:sequenceFlow id=\"Flow_0hlf947\" sourceRef=\"Activity_1cbbbyn\" targetRef=\"Event_0haq8vy\" /><bpmn2:sequenceFlow id=\"Flow_1va294l\" name=\"yes\" sourceRef=\"Gateway_1skwah6\" targetRef=\"Activity_1jq92cn\" /><bpmn2:sequenceFlow id=\"Flow_074b18l\" name=\"no\" sourceRef=\"Gateway_1skwah6\" targetRef=\"Event_07htuww\" /><bpmn2:task id=\"Activity_1w6t0ii\" name=\"Get customers from Shopify\"><bpmn2:incoming>Flow_1139wsd</bpmn2:incoming><bpmn2:outgoing>Flow_1yudabs</bpmn2:outgoing><bpmn2:property id=\"Property_0v27u3k\" name=\"__targetRef_placeholder\" /><bpmn2:dataInputAssociation id=\"DataInputAssociation_11wb7ar\"><bpmn2:sourceRef>DataStoreReference_09o0a8l</bpmn2:sourceRef><bpmn2:targetRef>Property_0v27u3k</bpmn2:targetRef></bpmn2:dataInputAssociation></bpmn2:task><bpmn2:sequenceFlow id=\"Flow_1139wsd\" sourceRef=\"StartEvent_1\" targetRef=\"Activity_1w6t0ii\" /><bpmn2:sequenceFlow id=\"Flow_1yudabs\" sourceRef=\"Activity_1w6t0ii\" targetRef=\"Gateway_1skwah6\" /><bpmn2:scriptTask id=\"Activity_1jq92cn\" name=\"Assign errors\"><bpmn2:incoming>Flow_1va294l</bpmn2:incoming><bpmn2:outgoing>Flow_1vcadx1</bpmn2:outgoing></bpmn2:scriptTask><bpmn2:scriptTask id=\"Activity_130kuj9\" name=\"Assign inserted\"><bpmn2:incoming>Flow_1vcadx1</bpmn2:incoming><bpmn2:outgoing>Flow_1b80bjw</bpmn2:outgoing></bpmn2:scriptTask><bpmn2:scriptTask id=\"Activity_0p4ify2\" name=\"Assign updated\"><bpmn2:incoming>Flow_1b80bjw</bpmn2:incoming><bpmn2:outgoing>Flow_07godbe</bpmn2:outgoing></bpmn2:scriptTask><bpmn2:sequenceFlow id=\"Flow_1b80bjw\" sourceRef=\"Activity_130kuj9\" targetRef=\"Activity_0p4ify2\" /><bpmn2:sequenceFlow id=\"Flow_07godbe\" sourceRef=\"Activity_0p4ify2\" targetRef=\"Activity_1cbbbyn\" /><bpmn2:sequenceFlow id=\"Flow_1vcadx1\" sourceRef=\"Activity_1jq92cn\" targetRef=\"Activity_130kuj9\" /><bpmn2:group id=\"Group_1e0b5j7\" categoryValueRef=\"CategoryValue_1r7e36b\" /><bpmn2:group id=\"Group_0appgmh\" categoryValueRef=\"CategoryValue_05mvqva\" /><bpmn2:textAnnotation id=\"TextAnnotation_0mj6yft\"><bpmn2:text>Returns the count of inserted and updated products and possible errors.</bpmn2:text></bpmn2:textAnnotation><bpmn2:association id=\"Association_0obj76t\" sourceRef=\"Event_0haq8vy\" targetRef=\"TextAnnotation_0mj6yft\" /><bpmn2:textAnnotation id=\"TextAnnotation_003mlpq\"><bpmn2:text>Create variables for inserted/updated count and possible errors.</bpmn2:text></bpmn2:textAnnotation><bpmn2:association id=\"Association_1dm5rrk\" sourceRef=\"Activity_1jq92cn\" targetRef=\"TextAnnotation_003mlpq\" /><bpmn2:association id=\"Association_0qbt7ot\" sourceRef=\"Activity_130kuj9\" targetRef=\"TextAnnotation_003mlpq\" /><bpmn2:association id=\"Association_1kzhhwr\" sourceRef=\"Activity_0p4ify2\" targetRef=\"TextAnnotation_003mlpq\" /></bpmn2:process><bpmn2:category id=\"Category_098dlqy\"><bpmn2:categoryValue id=\"CategoryValue_1r7e36b\" value=\"Get data from Shopify\" /></bpmn2:category><bpmn2:category id=\"Category_188ru1o\"><bpmn2:categoryValue id=\"CategoryValue_05mvqva\" value=\"Upload to Dynamics 365\" /></bpmn2:category><bpmndi:BPMNDiagram id=\"BPMNDiagram_1\"><bpmndi:BPMNPlane id=\"BPMNPlane_1\" bpmnElement=\"Process_1\"><bpmndi:BPMNShape id=\"BPMNShape_0cyzftk\" bpmnElement=\"StartEvent_1\"><dc:Bounds x=\"362\" y=\"332\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"362\" y=\"368\" width=\"37\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_0haq8vy_di\" bpmnElement=\"Event_0haq8vy\"><dc:Bounds x=\"2252\" y=\"332\" width=\"36\" height=\"36\" /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_1cbbbyn_di\" bpmnElement=\"Activity_1cbbbyn\" isExpanded=\"true\"><dc:Bounds x=\"1150\" y=\"72\" width=\"960\" height=\"610\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_01lslhn_di\" bpmnElement=\"Event_01lslhn\"><dc:Bounds x=\"1172\" y=\"332\" width=\"36\" height=\"36\" /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_18710cb_di\" bpmnElement=\"Event_18710cb\"><dc:Bounds x=\"1972\" y=\"202\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1948\" y=\"245\" width=\"85\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_08frzr1_di\" bpmnElement=\"Gateway_08frzr1\" isMarkerVisible=\"true\"><dc:Bounds x=\"1825\" y=\"195\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1818\" y=\"158\" width=\"67\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_06117ey_di\" bpmnElement=\"Event_06117ey\"><dc:Bounds x=\"1832\" y=\"312\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1808\" y=\"355\" width=\"84\" height=\"40\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_1vz5788_di\" bpmnElement=\"Activity_1vz5788\"><dc:Bounds x=\"1640\" y=\"180\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_156pj4n_di\" bpmnElement=\"Activity_156pj4n\"><dc:Bounds x=\"1270\" y=\"310\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_08738ux_di\" bpmnElement=\"Gateway_08738ux\" isMarkerVisible=\"true\"><dc:Bounds x=\"1555\" y=\"325\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1602\" y=\"323\" width=\"76\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_009c1q2_di\" bpmnElement=\"Activity_009c1q2\"><dc:Bounds x=\"1640\" y=\"430\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_00xb4jp_di\" bpmnElement=\"Gateway_00xb4jp\" isMarkerVisible=\"true\"><dc:Bounds x=\"1825\" y=\"445\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1813\" y=\"415\" width=\"75\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_1hjhcuo_di\" bpmnElement=\"Event_1hjhcuo\"><dc:Bounds x=\"1832\" y=\"562\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1808\" y=\"605\" width=\"84\" height=\"40\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_1e8y0zn_di\" bpmnElement=\"Event_1e8y0zn\"><dc:Bounds x=\"1972\" y=\"452\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1947\" y=\"495\" width=\"86\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_1i3gwt2_di\" bpmnElement=\"Gateway_1i3gwt2\" isMarkerVisible=\"true\"><dc:Bounds x=\"1435\" y=\"325\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1429\" y=\"288\" width=\"61\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_168rx54_di\" bpmnElement=\"Event_168rx54\"><dc:Bounds x=\"1442\" y=\"482\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1418\" y=\"525\" width=\"84\" height=\"40\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"TextAnnotation_0a6gpmn_di\" bpmnElement=\"TextAnnotation_0a6gpmn\"><dc:Bounds x=\"1270\" y=\"194\" width=\"130\" height=\"52\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"Flow_148u9tu_di\" bpmnElement=\"Flow_148u9tu\"><di:waypoint x=\"1208\" y=\"350\" /><di:waypoint x=\"1270\" y=\"350\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0u6g4mt_di\" bpmnElement=\"Flow_0u6g4mt\"><di:waypoint x=\"1875\" y=\"220\" /><di:waypoint x=\"1972\" y=\"220\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1880\" y=\"202\" width=\"16\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0txpa1f_di\" bpmnElement=\"Flow_0txpa1f\"><di:waypoint x=\"1740\" y=\"220\" /><di:waypoint x=\"1825\" y=\"220\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1vgvuo1_di\" bpmnElement=\"Flow_1vgvuo1\"><di:waypoint x=\"1370\" y=\"350\" /><di:waypoint x=\"1435\" y=\"350\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1byfsvr_di\" bpmnElement=\"Flow_1byfsvr\"><di:waypoint x=\"1580\" y=\"375\" /><di:waypoint x=\"1580\" y=\"470\" /><di:waypoint x=\"1640\" y=\"470\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1592\" y=\"393\" width=\"16\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0avt6fb_di\" bpmnElement=\"Flow_0avt6fb\"><di:waypoint x=\"1580\" y=\"325\" /><di:waypoint x=\"1580\" y=\"220\" /><di:waypoint x=\"1640\" y=\"220\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1593\" y=\"277\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0yop5xq_di\" bpmnElement=\"Flow_0yop5xq\"><di:waypoint x=\"1850\" y=\"245\" /><di:waypoint x=\"1850\" y=\"312\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1859\" y=\"277\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_19pgly8_di\" bpmnElement=\"Flow_19pgly8\"><di:waypoint x=\"1740\" y=\"470\" /><di:waypoint x=\"1825\" y=\"470\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_17a4ytj_di\" bpmnElement=\"Flow_17a4ytj\"><di:waypoint x=\"1875\" y=\"470\" /><di:waypoint x=\"1972\" y=\"470\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1883\" y=\"452\" width=\"16\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0mztgqh_di\" bpmnElement=\"Flow_0mztgqh\"><di:waypoint x=\"1850\" y=\"495\" /><di:waypoint x=\"1850\" y=\"562\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1855\" y=\"522\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_194nqxj_di\" bpmnElement=\"Flow_194nqxj\"><di:waypoint x=\"1485\" y=\"350\" /><di:waypoint x=\"1555\" y=\"350\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1512\" y=\"332\" width=\"16\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1x6ymz6_di\" bpmnElement=\"Flow_1x6ymz6\"><di:waypoint x=\"1460\" y=\"375\" /><di:waypoint x=\"1460\" y=\"482\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1469\" y=\"428\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Association_1lelun7_di\" bpmnElement=\"Association_1lelun7\"><di:waypoint x=\"1320\" y=\"310\" /><di:waypoint x=\"1320\" y=\"246\" /></bpmndi:BPMNEdge><bpmndi:BPMNShape id=\"DataStoreReference_09o0a8l_di\" bpmnElement=\"DataStoreReference_09o0a8l\"><dc:Bounds x=\"535\" y=\"197\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"542\" y=\"167\" width=\"38\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_1skwah6_di\" bpmnElement=\"Gateway_1skwah6\" isMarkerVisible=\"true\"><dc:Bounds x=\"675\" y=\"325\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"664\" y=\"288\" width=\"72\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_07htuww_di\" bpmnElement=\"Event_07htuww\"><dc:Bounds x=\"682\" y=\"444\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"660\" y=\"487\" width=\"81\" height=\"40\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_1w6t0ii_di\" bpmnElement=\"Activity_1w6t0ii\"><dc:Bounds x=\"510\" y=\"310\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_1jq92cn_di\" bpmnElement=\"Activity_1jq92cn\"><dc:Bounds x=\"865\" y=\"335\" width=\"30\" height=\"30\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_130kuj9_di\" bpmnElement=\"Activity_130kuj9\"><dc:Bounds x=\"955\" y=\"335\" width=\"30\" height=\"30\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_0p4ify2_di\" bpmnElement=\"Activity_0p4ify2\"><dc:Bounds x=\"1045\" y=\"335\" width=\"30\" height=\"30\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Group_1e0b5j7_di\" bpmnElement=\"Group_1e0b5j7\"><dc:Bounds x=\"450\" y=\"12\" width=\"360\" height=\"730\" /><bpmndi:BPMNLabel><dc:Bounds x=\"597\" y=\"19\" width=\"68\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Group_0appgmh_di\" bpmnElement=\"Group_0appgmh\"><dc:Bounds x=\"820\" y=\"12\" width=\"1330\" height=\"730\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1450\" y=\"19\" width=\"71\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"TextAnnotation_0mj6yft_di\" bpmnElement=\"TextAnnotation_0mj6yft\"><dc:Bounds x=\"2200\" y=\"210\" width=\"140\" height=\"74\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"TextAnnotation_003mlpq_di\" bpmnElement=\"TextAnnotation_003mlpq\"><dc:Bounds x=\"910\" y=\"213\" width=\"119.98617401756192\" height=\"69.50207468879668\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"Flow_0hlf947_di\" bpmnElement=\"Flow_0hlf947\"><di:waypoint x=\"2110\" y=\"350\" /><di:waypoint x=\"2252\" y=\"350\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1va294l_di\" bpmnElement=\"Flow_1va294l\"><di:waypoint x=\"725\" y=\"350\" /><di:waypoint x=\"865\" y=\"350\" /><bpmndi:BPMNLabel><dc:Bounds x=\"737\" y=\"335\" width=\"16\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_074b18l_di\" bpmnElement=\"Flow_074b18l\"><di:waypoint x=\"700\" y=\"375\" /><di:waypoint x=\"700\" y=\"444\" /><bpmndi:BPMNLabel><dc:Bounds x=\"709\" y=\"406\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"DataInputAssociation_11wb7ar_di\" bpmnElement=\"DataInputAssociation_11wb7ar\"><di:waypoint x=\"560\" y=\"247\" /><di:waypoint x=\"560\" y=\"310\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1139wsd_di\" bpmnElement=\"Flow_1139wsd\"><di:waypoint x=\"398\" y=\"350\" /><di:waypoint x=\"510\" y=\"350\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1yudabs_di\" bpmnElement=\"Flow_1yudabs\"><di:waypoint x=\"610\" y=\"350\" /><di:waypoint x=\"675\" y=\"350\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1b80bjw_di\" bpmnElement=\"Flow_1b80bjw\"><di:waypoint x=\"985\" y=\"350\" /><di:waypoint x=\"1045\" y=\"350\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_07godbe_di\" bpmnElement=\"Flow_07godbe\"><di:waypoint x=\"1075\" y=\"350\" /><di:waypoint x=\"1150\" y=\"350\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1vcadx1_di\" bpmnElement=\"Flow_1vcadx1\"><di:waypoint x=\"895\" y=\"350\" /><di:waypoint x=\"955\" y=\"350\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Association_0obj76t_di\" bpmnElement=\"Association_0obj76t\"><di:waypoint x=\"2270\" y=\"332\" /><di:waypoint x=\"2270\" y=\"284\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Association_1dm5rrk_di\" bpmnElement=\"Association_1dm5rrk\"><di:waypoint x=\"889\" y=\"336\" /><di:waypoint x=\"925\" y=\"283\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Association_0qbt7ot_di\" bpmnElement=\"Association_0qbt7ot\"><di:waypoint x=\"970\" y=\"335\" /><di:waypoint x=\"970\" y=\"283\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Association_1kzhhwr_di\" bpmnElement=\"Association_1kzhhwr\"><di:waypoint x=\"1051\" y=\"336\" /><di:waypoint x=\"1015\" y=\"283\" /></bpmndi:BPMNEdge></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn2:definitions>",
					"ElementParameters": "[{\"Id\":\"StartEvent_1\",\"Type\":0,\"Parameters\":{},\"SelectedTypeId\":\"ManualTrigger\",\"PromoteResultAs\":null,\"Name\":\"Manual\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_0haq8vy\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.errors == \\\"\\\" ? $\\\"{#var.inserted} customers inserted and {#var.updated} updated in Dynamics 365.\\\" : $\\\"{#var.inserted} customers inserted and {#var.updated} updated in Dynamics 365. Process completed with errors: {#var.errors}\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_1cbbbyn\",\"Type\":10,\"Parameters\":{\"variable\":\"customer\",\"expression\":{\"mode\":\"csharp\",\"value\":\"#result[Get customers from Shopify].Body.customers\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"For each customer\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"DataStoreReference_09o0a8l\",\"Type\":22,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Shopify\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_1skwah6\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result[Get customers from Shopify].StatusCode == 200\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Get customers successful?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_07htuww\",\"Type\":6,\"Parameters\":{\"expression\":{\"mode\":\"text\",\"value\":\"Error while getting customers from Shopify: {{#result[Get customers from Shopify].Body.message}}\"},\"bypassGlobalExceptionHandler\":{\"mode\":\"toggle\",\"value\":true}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_1va294l\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_074b18l\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_01lslhn\",\"Type\":13,\"Parameters\":{},\"SelectedTypeId\":\"\",\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_18710cb\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.inserted += 1\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_08frzr1\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result[Insert contact in Dynamics].Success\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Insert contact successful?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_06117ey\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.errors += $\\\"\\\\nError while inserting customer with Shopify id {#var.customer.id}: {#result[Insert contact in Dynamics].ErrorMessage}\\\"\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_0u6g4mt\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_1w6t0ii\",\"Type\":1,\"Parameters\":{\"input\":{\"Method\":{\"mode\":\"select\",\"value\":\"GET\"},\"ResultMethod\":{\"mode\":\"select\",\"value\":\"JToken\"},\"Url\":{\"mode\":\"text\",\"value\":\"{{#var.ShopifyUrl}}/admin/api/2024-04/customers.json\"},\"Message\":{\"mode\":\"text\",\"value\":\"\"},\"Headers\":[{\"Name\":{\"mode\":\"text\",\"value\":\"Content-Type\"},\"Value\":{\"mode\":\"text\",\"value\":\"application/json\"}},{\"Name\":{\"mode\":\"text\",\"value\":\"X-Shopify-Access-Token\"},\"Value\":{\"mode\":\"csharp\",\"value\":\"#var.ShopifyAccessToken\"}}]},\"options\":{\"Authentication\":{\"mode\":\"select\",\"value\":\"None\"},\"Username\":{\"mode\":\"text\",\"value\":\"\"},\"Password\":{\"mode\":\"text\",\"value\":\"\"},\"Token\":{\"mode\":\"text\",\"value\":\"\"},\"ClientCertificateSource\":{\"mode\":\"select\",\"value\":\"CertificateStore\"},\"ClientCertificateFilePath\":{\"mode\":\"text\",\"value\":\"\"},\"ClientCertificateInBase64\":{\"mode\":\"text\",\"value\":\"\"},\"ClientCertificateKeyPhrase\":{\"mode\":\"text\",\"value\":\"\"},\"CertificateThumbprint\":{\"mode\":\"text\",\"value\":\"\"},\"LoadEntireChainForCertificate\":{\"mode\":\"toggle\",\"value\":true},\"ConnectionTimeoutSeconds\":{\"mode\":\"integer\",\"value\":30},\"FollowRedirects\":{\"mode\":\"toggle\",\"value\":true},\"AllowInvalidCertificate\":{\"mode\":\"toggle\",\"value\":false},\"AllowInvalidResponseContentTypeCharSet\":{\"mode\":\"toggle\",\"value\":false},\"ThrowExceptionOnErrorResponse\":{\"mode\":\"toggle\",\"value\":false},\"AutomaticCookieHandling\":{\"mode\":\"toggle\",\"value\":true}},\"cancellationToken\":null},\"SelectedTypeId\":\"/ProcessTask/d2f2020e-4ce6-4e5f-879f-ef34e57c9fca/v1\",\"PromoteResultAs\":null,\"Name\":\"Get customers from Shopify\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":true,\"ShouldDispose\":null},{\"Id\":\"Activity_1vz5788\",\"Type\":1,\"Parameters\":{\"input\":{\"ClientId\":{\"mode\":\"csharp\",\"value\":\"#var.DynamicsClientId\"},\"TenantId\":{\"mode\":\"csharp\",\"value\":\"#var.DynamicsTenantId\"},\"ClientSecret\":{\"mode\":\"csharp\",\"value\":\"#var.DynamicsClientSecret\"},\"Dynamics365Url\":{\"mode\":\"csharp\",\"value\":\"#var.DynamicsUrl\"},\"Method\":{\"mode\":\"select\",\"value\":\"POST\"},\"Path\":{\"mode\":\"text\",\"value\":\"contacts\"},\"Payload\":{\"mode\":\"text\",\"value\":\"{\\r\\n    \\\"firstname\\\": \\\"{{#var.customer.first_name}}\\\",\\r\\n    \\\"lastname\\\": \\\"{{#var.customer.last_name}}\\\",\\r\\n    \\\"emailaddress1\\\": \\\"{{#var.customer.email}}\\\",\\r\\n    \\\"address1_line1\\\": \\\"{{#var.customer.addresses.Count > 0 ? #var.customer.addresses[0].address1 : \\\"\\\"}}\\\",\\r\\n    \\\"address1_city\\\": \\\"{{#var.customer.addresses.Count > 0 ? #var.customer.addresses[0].city : \\\"\\\"}}\\\",\\r\\n    \\\"address1_stateorprovince\\\": \\\"{{#var.customer.addresses.Count > 0 ? #var.customer.addresses[0].province : \\\"\\\"}}\\\",\\r\\n    \\\"address1_postalcode\\\": \\\"{{#var.customer.addresses.Count > 0 ? #var.customer.addresses[0].zip : \\\"\\\"}}\\\",\\r\\n    \\\"address1_country\\\": \\\"{{#var.customer.addresses.Count > 0 ? #var.customer.addresses[0].country : \\\"\\\"}}\\\"\\r\\n}\"}},\"options\":{\"ApiVersion\":{\"mode\":\"text\",\"value\":\"v9.1\"},\"ThrowExceptionOnErrorResponse\":{\"mode\":\"toggle\",\"value\":false}},\"cancellationToken\":null},\"SelectedTypeId\":\"/ProcessTask/81e6cd26-703c-4622-bbad-9743db2a6ae6/v2\",\"PromoteResultAs\":null,\"Name\":\"Insert contact in Dynamics\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_156pj4n\",\"Type\":1,\"Parameters\":{\"input\":{\"ClientId\":{\"mode\":\"csharp\",\"value\":\"#var.DynamicsClientId\"},\"TenantId\":{\"mode\":\"csharp\",\"value\":\"#var.DynamicsTenantId\"},\"ClientSecret\":{\"mode\":\"csharp\",\"value\":\"#var.DynamicsClientSecret\"},\"Dynamics365Url\":{\"mode\":\"csharp\",\"value\":\"#var.DynamicsUrl\"},\"Method\":{\"mode\":\"select\",\"value\":\"GET\"},\"Path\":{\"mode\":\"text\",\"value\":\"contacts?$filter=emailaddress1 eq '{{#var.customer.email}}'&$select=contactid\"},\"Payload\":{\"mode\":\"text\",\"value\":\"\"}},\"options\":{\"ApiVersion\":{\"mode\":\"text\",\"value\":\"v9.1\"},\"ThrowExceptionOnErrorResponse\":{\"mode\":\"toggle\",\"value\":false}},\"cancellationToken\":null},\"SelectedTypeId\":\"/ProcessTask/81e6cd26-703c-4622-bbad-9743db2a6ae6/v2\",\"PromoteResultAs\":null,\"Name\":\"Find contact in Dynamics\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_1byfsvr\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_08738ux\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result[Find contact in Dynamics].Data.value.Count > 0\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Contact exists?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_009c1q2\",\"Type\":1,\"Parameters\":{\"input\":{\"ClientId\":{\"mode\":\"csharp\",\"value\":\"#var.DynamicsClientId\"},\"TenantId\":{\"mode\":\"csharp\",\"value\":\"#var.DynamicsTenantId\"},\"ClientSecret\":{\"mode\":\"csharp\",\"value\":\"#var.DynamicsClientSecret\"},\"Dynamics365Url\":{\"mode\":\"csharp\",\"value\":\"#var.DynamicsUrl\"},\"Method\":{\"mode\":\"select\",\"value\":\"PATCH\"},\"Path\":{\"mode\":\"text\",\"value\":\"contacts({{#result[Find contact in Dynamics].Data.value[0].contactid}})\"},\"Payload\":{\"mode\":\"text\",\"value\":\"{\\r\\n    \\\"firstname\\\": \\\"{{#var.customer.first_name}}\\\",\\r\\n    \\\"lastname\\\": \\\"{{#var.customer.last_name}}\\\",\\r\\n    \\\"emailaddress1\\\": \\\"{{#var.customer.email}}\\\",\\r\\n    \\\"address1_line1\\\": \\\"{{#var.customer.addresses.Count > 0 ? #var.customer.addresses[0].address1 : \\\"\\\"}}\\\",\\r\\n    \\\"address1_city\\\": \\\"{{#var.customer.addresses.Count > 0 ? #var.customer.addresses[0].city : \\\"\\\"}}\\\",\\r\\n    \\\"address1_stateorprovince\\\": \\\"{{#var.customer.addresses.Count > 0 ? #var.customer.addresses[0].province : \\\"\\\"}}\\\",\\r\\n    \\\"address1_postalcode\\\": \\\"{{#var.customer.addresses.Count > 0 ? #var.customer.addresses[0].zip : \\\"\\\"}}\\\",\\r\\n    \\\"address1_country\\\": \\\"{{#var.customer.addresses.Count > 0 ? #var.customer.addresses[0].country : \\\"\\\"}}\\\"\\r\\n}\"}},\"options\":{\"ApiVersion\":{\"mode\":\"text\",\"value\":\"v9.1\"},\"ThrowExceptionOnErrorResponse\":{\"mode\":\"toggle\",\"value\":false}},\"cancellationToken\":null},\"SelectedTypeId\":\"/ProcessTask/81e6cd26-703c-4622-bbad-9743db2a6ae6/v2\",\"PromoteResultAs\":null,\"Name\":\"Update contact in Dynamics\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_0avt6fb\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_0yop5xq\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_00xb4jp\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result[Update contact in Dynamics].Success\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Update contact successful?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_17a4ytj\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_0mztgqh\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_1hjhcuo\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.errors += $\\\"\\\\nError while updating customer with Shopify id {#var.customer.id}: {#result[Update contact in Dynamics].ErrorMessage}.\\\"\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"FrendsTestElementId\",\"Type\":19,\"Parameters\":{\"input\":{\"ClientId\":{\"mode\":\"text\",\"value\":\"\"},\"TenantId\":{\"mode\":\"text\",\"value\":\"\"},\"ClientSecret\":{\"mode\":\"text\",\"value\":\"\"},\"Dynamics365Url\":{\"mode\":\"csharp\",\"value\":\"https://[MY_ORG].crm4.dynamics.com\"},\"Method\":{\"mode\":\"select\",\"value\":\"GET\"},\"Path\":{\"mode\":\"text\",\"value\":\"\"},\"Payload\":{\"mode\":\"text\",\"value\":\"\"}},\"options\":{\"ApiVersion\":{\"mode\":\"csharp\",\"value\":\"v9.1\"},\"ThrowExceptionOnErrorResponse\":{\"mode\":\"toggle\",\"value\":false}},\"cancellationToken\":null},\"SelectedTypeId\":\"/ProcessTask/81e6cd26-703c-4622-bbad-9743db2a6ae6/v2\",\"PromoteResultAs\":null,\"Name\":\"Test\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_1e8y0zn\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.updated += 1\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_194nqxj\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_1i3gwt2\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result[Find contact in Dynamics].Success\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Find contact successful?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_1x6ymz6\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_168rx54\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.errors += $\\\"\\\\nError while searching for a matching Dynamics contact for Shopify customer {#var.customer.id}: {#result[Find contact in Dynamics].ErrorMessage}.\\\"\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_1jq92cn\",\"Type\":12,\"Parameters\":{\"variableName\":\"errors\",\"variableExpression\":{\"mode\":\"csharp\",\"value\":\"\\\"\\\"\"},\"shouldAssignVariable\":{\"mode\":\"toggle\",\"value\":true}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Assign errors\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_130kuj9\",\"Type\":12,\"Parameters\":{\"variableName\":\"inserted\",\"variableExpression\":{\"mode\":\"csharp\",\"value\":\"0\"},\"shouldAssignVariable\":{\"mode\":\"toggle\",\"value\":true}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Assign inserted\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_0p4ify2\",\"Type\":12,\"Parameters\":{\"variableName\":\"updated\",\"variableExpression\":{\"mode\":\"csharp\",\"value\":\"0\"},\"shouldAssignVariable\":{\"mode\":\"toggle\",\"value\":true}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Assign updated\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null}]",
					"ManualTriggerJson": "[]",
					"IsSubprocess": false,
					"TriggersJson": "[{\"$type\":\"ManualTrigger\",\"config\":{},\"name\":\"Manual\",\"id\":\"StartEvent_1\",\"shouldNotLogParameters\":null}]",
					"AssemblyName": null,
					"PackageId": null,
					"PackageVersion": null,
					"UsedTasksJson": "[\"/ProcessTask/D2F2020E-4CE6-4E5F-879F-EF34E57C9FCA/v1\",\"/ProcessTask/81E6CD26-703C-4622-BBAD-9743DB2A6AE6/v2\"]",
					"UsedSubprocessesJson": "{}",
					"ProcessExecutionVersion": "",
					"FrendsVersion": "5.7.3.1743",
					"TargetFramework": "net8.0",
					"StaticRequiredEnvironmentVariables": [],
					"RequiredEnvironmentVariables": [],
					"PromotedResultVariablesJson": "[]",
					"MajorVersion": 1,
					"MinorVersion": 0,
					"IsForMonitoringRule": false,
					"ProcessVariablesJson": null
				},
				"LinkedTasks": {
					"e04dd954-456e-44ed-98e9-99bbff588a8a": [
						{
							"Id": "d2f2020e-4ce6-4e5f-879f-ef34e57c9fca",
							"PackageId": "Frends.HTTP.Request",
							"PackageVersion": "1.1.2",
							"Name": "Frends.HTTP.Request.HTTP.Request(Input, Options, CancellationToken)",
							"FrameworkIdentifier": ".NETCoreApp"
						},
						{
							"Id": "81e6cd26-703c-4622-bbad-9743db2a6ae6",
							"PackageId": "Frends.MicrosoftDynamics365.Request",
							"PackageVersion": "1.1.0",
							"Name": "Frends.MicrosoftDynamics365.Request.MicrosoftDynamics365.Request(Input, Options, CancellationToken)",
							"FrameworkIdentifier": ".NETCoreApp"
						}
					]
				},
				"LinkedSubProcess": {},
				"Version": "Acc41"
			}
		}
	]
}